/**
 * @description 微博 @ 关系 controller
 * @author 刘煎蛋
 */

const { getAtMeBlogList } = require('../../controller/blog-at'); 

const router = require('koa-router')()

router.prefix('/api/atMe')

router.get('/loadMore/:pageIndex', async ( ctx, next ) => {
    let { pageIndex } = ctx.params;
    pageIndex = parseInt( pageIndex );
    userId = 2;
    const result = await getAtMeBlogList(userId, pageIndex);
    
    ctx.body = result;

})


module.exports = router;
